/*
 * Test_FindAndUnion.h
 *
 *  Created on: Apr 4, 2014
 *      Author: zby
 */

#ifndef TEST_FINDANDUNION_H_
#define TEST_FINDANDUNION_H_


#include <cppunit/ui/text/TestRunner.h>
#include <cppunit/CompilerOutputter.h>
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/TestFactoryRegistry.h>
#include <cppunit/extensions/HelperMacros.h>
#include <cppunit/TestSuite.h>
#include <cppunit/Test.h>
#include <cppunit/TestResult.h>
#include <cppunit/TestResultCollector.h>
#include <cppunit/TestCaller.h>
#include <cppunit/TestAssert.h>
#include <cppunit/TestResultCollector.h>
#include <cppunit/TestRunner.h>
#include <cppunit/BriefTestProgressListener.h>
#include <cppunit/CompilerOutputter.h>
#include <cppunit/XmlOutputter.h>
//-------------------------------
#include "FindAndUnion.h"


class Test_FindAndUnion: public CppUnit::TestFixture
{
    private:
        FindAndUnion *fau;
    public:
        void setUp()
        {
            fau = new FindAndUnion(10);
        }

        Test_FindAndUnion(){};
        ~Test_FindAndUnion(){};
        void test_def_constructor(void);
        void test_unite(void);
        void test_root(void);
        void test_ifTheSameRoot(void);

        static CppUnit::Test* suite();

        void tearDown()
        {
            delete fau;
        }
};


#endif /* TEST_FINDANDUNION_H_ */
